
import gui.BotGui;

import java.awt.AWTException;
import java.awt.Color;
import java.awt.Robot;

//for the regular page not edit
public class HeightTestCityPage {
	public static void main(String[] args){
		long start = System.currentTimeMillis();
		while (System.currentTimeMillis() - start < 10000){}
		Robot robo;
		try{
			robo = new Robot();
			//was 290 when wikinic banner was up
			boolean done = true;
			for (int k = 0; k < 10; k++){
				robo.mouseMove(791, BotGui.heightCityPage + k);
				Color test = robo.getPixelColor(791, BotGui.heightCityPage + k);
				if (test.getBlue() < 240 || test.getBlue() > 250 || test.getGreen() < 240 || test.getGreen() > 250 ||
						test.getRed() < 240 || test.getRed() > 250){
					done = false;
					System.out.println(test);
				}
			}
			if (done == false){
				System.out.println("Fail");
			}
			else{
				System.out.println("Success");
			}
		}
		catch (AWTException e){
			e.printStackTrace();
		}
	}
}
